package com.xhs.utils;

public class StringUtil {
    public static boolean isNotEmpty(String... strs){
        boolean r = true;
        for (String s:strs){
            if (s==null||s.length()==0){
                r = false;
                break;
            }
        }
        return r;
    }

    public static boolean regexPhone(String phone){
        if (StringUtil.isNotEmpty(phone)){
            return phone.matches("^1{1}[3-9]{1}[0-9]{9}$");
        }
        return false;
    }
}
